Skip to content

Fix aws cli perms#132

Open
stevendborrelli wants to merge 3 commits into
crossplane-contrib:mainfrom
stevendborrelli:fix-aws-cli-perms
Open

Fix aws cli perms#132
stevendborrelli wants to merge 3 commits into
crossplane-contrib:mainfrom
stevendborrelli:fix-aws-cli-perms

Conversation

@stevendborrelli

@stevendborrelli stevendborrelli commented Jul 9, 2026

Copy link
Copy Markdown
Member

Description of your changes

Added cleanup step to remove temporary AWS CLI installation files (/aws and /tmp/awscliv2.zip) after installation, reducing the final image size. This also addresses some AWS CLI permissions when setting a different UID/GID.

Testing

Ran locally using UID/GID 2000:

$ docker run -it --rm --user 2000:2000 --entrypoint /bin/zsh index.docker.io/steve/function-shell:permfix 
0467ea58ba81% id
uid=2000 gid=2000 groups=2000
0467ea58ba81% aws sts  get-caller-identity
{
    "UserId": "xxx:steven@example.com",
    "Account": "abc",
    "Arn": "arn:aws:sts::abc:assumed-role/1234/steven@example.com"
}

Fixes #

I have:

Signed-off-by: Steven Borrelli <steve@borrelli.org>
Signed-off-by: Steven Borrelli <steve@borrelli.org>
Signed-off-by: Steven Borrelli <steve@borrelli.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant